package com.itheima.demo;

public class test_1 {
    public static void main(String[] args) {
        Person P=new Person("张三",15);
        String s = P.toString();//子类重写了toString方法
        System.out.println(s);



        }



    }

